import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/Login')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/Home')
  }, {
    path: '/register',
    name: 'Register',
    component: () => import('@/views/register/Register')
  }, {
    path: '/personal',
    name: 'Personal',
    component: () => import('@/views/personal/Personal')
  },
  // 个人信息修改
  {
    path: '/personal/editProfile',
    name: 'EditProfile',
    component: () => import('@/views/personal/editProfile/EditProfile')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
